﻿using CommunityToolkit.Mvvm.ComponentModel;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;
using Newtonsoft;
using Newtonsoft.Json;

namespace 三维转台控制系统
{
    public partial class SystemConfig:ObservableObject
    {
        [Newtonsoft.Json.JsonIgnore]
        public ObservableCollection<Axis> _Axes = new ObservableCollection<Axis>()
        {
            new Axis()
            {
                Name = "偏航",
                EnableState=true,
                UpperLimitState=true,
            },
            new Axis()
            {
                Name = "俯仰",
                ErrorState=true,
            },
            new Axis()
            {
                Name = "横滚",
                UpperLimitState=true,
            },
            new Axis()
            {
                Name = "方位",
                LowerLimitState=true,

            },
            new Axis()
            {
                Name = "高低",
                EnableState=true,
                ErrorState= true,
            }
        };
        public ObservableCollection<Axis> Axes
        {
            get
            {
                return _Axes;
            }
            set
            {
                SetProperty(ref _Axes, value);
            }
        }


        public uint _DecimalPlaces = 4;
        public uint DecimalPlaces
        {
            get { return _DecimalPlaces; }
            set { SetProperty(ref _DecimalPlaces, value);}
        }
    }
}
